<template>
  <el-input type="textarea" :rows="24" v-model="input" placeholder="请输入证书"></el-input>
  <button @click="aa()">666</button>
</template>
<script lang="ts">
export default {
  name: "Sandra"
}
</script>
<script lang="ts" setup>
import { ref } from 'vue'
import {yaml2json} from "@/util/js-yaml";
import {useErrorMessage} from "@/util";
const input = ref('333')
let aa = ()=>{
  yaml2json(input.value,false)
  console.log(yaml2json(input.value, false));
  if (yaml2json(input.value,false).error){
    useErrorMessage(yaml2json(input.value,false).data)
  }
}
</script>
